package com.csun.cmny.provider.model.dto.sanitation;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.NonNull;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Column;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.List;

import static org.apache.zookeeper.server.ServerCnxn.me;

@Data
public class SanitationRecordSaveDto {

    //老人id
    @NotNull(message = "{sanitation.oldmanId.null}")
    private Long oldManId;

    //老人名字
    @NotEmpty(message = "{sanitation.oldmanName.null}")
    private String oldManName;

    //老人年龄
    @NotNull(message = "{Archives.age.null}")
    private Integer oldManAge;

    //老人性别 1-男 2-女
    @NotNull(message = "{advisory.oldSex.null}")
    private Integer oldManGender;

    //老人照护等级
    @NotEmpty(message = "{sanitation.oldManLevelCare.null}")
    private String oldManLevelCare;

    //楼栋号
    @NotEmpty(message = "{sanitation.budingNo.null}")
    private String budingNo;

    //房間號
    @NotEmpty(message = "{sanitation.roomNo.null}")
    private String roomNo;

    //床位号
    @NotEmpty(message = "{sanitation.bedNo.null}")
    private String bedNo;

    //护工名字
    @NotEmpty(message = "{sanitation.nursingName.null}")
    private String nursingName;

    //护工userId
    @NotNull(message = "{sanitation.nursingId.null}")
    private Long nursingUserId;

    //记录日期
    @NotNull(message = "{sanitation.recordDate.null}")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date recordDate;

    //卫生服务id集合
    @NotNull(message = "{sanitation.serviceIds.null}")
    private List<Long> serviceIds;

    //备注
    private String remark;
}
